<%@ taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
        <title>Авторизация</title>
        <style type="text/css">
            <%@ include file="style/style.css" %>
        </style>
    </head>
    <body>
        <br>
        <form name="Login" method="POST" action="${pageContext.request.contextPath}/j_spring_security_check">
        <c:if test="${not empty param.login_error}">
            <center>
            <font color="red">
                <b>Ошибка авторизации.<br/>
                Причина: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.</b>
            </font>
            </center>
        </c:if>
        <table style="border: 1px solid gray;" bgcolor="bebebe" align="center">
            <tr>
		<td align="right">
			Пользователь
		</td>
		<td align="left">
			<input type="text" name="j_username" value=""/>
		</td>
            </tr>
            <tr>
		<td align="right">
			Пароль
		</td>
		<td align="left">
			<input type="password" name="j_password" value="" />
		</td>
            </tr>
            <tr>
		<td colspan="2" align="center">
			<input type="submit" value="Авторизация"/>
		</td>
            </tr>
        </table>
</form>
    </body>
</html>
